package com.worthtech.billportal.bean;

/**
 * CsDicBankcommId entity.
 * 
 * @author MyEclipse Persistence Tools
 */

public class CsDicBankcommId implements java.io.Serializable {

	// Fields

	private String commercecode;
	private String groupid;
	private String termno;

	// Constructors

	/** default constructor */
	public CsDicBankcommId() {
	}

	/** full constructor */
	public CsDicBankcommId(String commercecode, String groupid, String termno) {
		this.commercecode = commercecode;
		this.groupid = groupid;
		this.termno = termno;
	}

	// Property accessors

	public String getCommercecode() {
		return this.commercecode;
	}

	public void setCommercecode(String commercecode) {
		this.commercecode = commercecode;
	}

	public String getGroupid() {
		return this.groupid;
	}

	public void setGroupid(String groupid) {
		this.groupid = groupid;
	}

	public String getTermno() {
		return this.termno;
	}

	public void setTermno(String termno) {
		this.termno = termno;
	}

	public boolean equals(Object other) {
		if ((this == other))
			return true;
		if ((other == null))
			return false;
		if (!(other instanceof CsDicBankcommId))
			return false;
		CsDicBankcommId castOther = (CsDicBankcommId) other;

		return ((this.getCommercecode() == castOther.getCommercecode()) || (this
				.getCommercecode() != null
				&& castOther.getCommercecode() != null && this
				.getCommercecode().equals(castOther.getCommercecode())))
				&& ((this.getGroupid() == castOther.getGroupid()) || (this
						.getGroupid() != null
						&& castOther.getGroupid() != null && this.getGroupid()
						.equals(castOther.getGroupid())))
				&& ((this.getTermno() == castOther.getTermno()) || (this
						.getTermno() != null
						&& castOther.getTermno() != null && this.getTermno()
						.equals(castOther.getTermno())));
	}

	public int hashCode() {
		int result = 17;

		result = 37
				* result
				+ (getCommercecode() == null ? 0 : this.getCommercecode()
						.hashCode());
		result = 37 * result
				+ (getGroupid() == null ? 0 : this.getGroupid().hashCode());
		result = 37 * result
				+ (getTermno() == null ? 0 : this.getTermno().hashCode());
		return result;
	}

}